home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 3 / Amiga Tools 3.iso / grafik / raytracing / rayshade-4.0.6.3 / inetray / inetray.x < prev    next >
Text File  |  1993-08-15  |  2KB  |  61 lines

  1. /*======================================================================
  2.                     I N E T R A Y . X 
  3.                     doc: Mon Feb 24 16:07:27 1992
  4.                     dlm: Sun Jul 11 12:34:22 1993
  5.                     (c) 1992 ant@julia
  6.                     uE-Info: 37 71 T 0 0 72 2 2 8 ofnI
  7. ======================================================================*/
  8.  
  9. #include    "prognum.h"
  10. %#include    <sys/param.h>
  11. %#ifndef ITIMER_REAL
  12. %#include    <sys/time.h>        /* for A/UX */
  13. %#endif
  14. %#include    "config.h"
  15.  
  16. struct iPrm {                /* params for init() */
  17.     int    key;            /* session key */
  18.     int    uid;            /* remote user id */
  19.     int    nSvcs;            /* # of workers to start */
  20.     short    rPort;            /* result port# */
  21.     string    rName<MAXHOSTNAMELEN>;     /* remote hostname */
  22.     string    cwd<MAXPATHLEN>;    /* remote wdir */
  23.     string    cmdLine<STRLEN>;    /* rayshade command line */
  24.     bool    sendIn;            /* sending StdIn? */
  25. } ;
  26.  
  27. struct sfPrm {                /* params for startframe() */
  28.     int    key;            /* session key */
  29.     int    fNr;            /* frame number */
  30. } ;
  31.  
  32. struct tbPrm {                /* params for traceblock() */
  33.     int    key;            /* session key */
  34.     int    bNr;            /* block Number */
  35.     int    bSz;            /* block size */
  36.     int    lNr;            /* first linenumber in block */
  37.     int    nBlocks;        /* number of blocks to trace */
  38. } ;
  39.  
  40. struct xdrPix {                /* as defined in picture.h */
  41.     double    r;
  42.     double    g;
  43.     double    b;
  44.     double    alpha;
  45. } ;
  46.  
  47. typedef xdrPix pixArr<>;        /* result is a line of pixels */
  48.  
  49. program INETRAY {
  50.     version IRV1 {
  51.         void  INIT(iPrm)    = 1;    /* init (read file) */
  52.         int   STARTFRAME(sfPrm)    = 2;    /* start new frame */
  53.         void  TRACEBLOCK(tbPrm)    = 3;    /* trace block of lines*/
  54.         int   KILL(int)        = 4;    /* kill worker */
  55.         int   WAIT(int)        = 5;    /* wait for dead worker */
  56.         void  TERMINATE(int)    = 6;    /* terminate self */
  57.     } = V1;
  58. } = IRNUM;
  59.  
  60.         
  61.